<?php
require 'dbmanager.php';

$params = array (
	'db' => 'liwe_test',
	'user' => 'root',
	'passwd' => '',
	'host' => 'localhost',
);

$db = new DBManager ( DBM_TYPE_MYSQL );
$db->connect ( $params );
/*
$res = $db->all_rows ( 'news_news', array ( 'id' ) );
$res = $db->single_row ( 'news_news', array ( 'id' ) );
$res = $db->count ( 'news_news', array ( 'id' ) );
var_dump($res);
$values = array ( 
	'id' => 1, 
	'name' => 'testme', 
	'group' => 'developer', 
	'time' => new DBLiteral ( 'NOW()' )
);
var_dump ( $db->insert ( 'test', $values ) );
*/
